﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Web;

namespace Archives
{
    public class WKF_WorkflowHistoryMap : EntityTypeConfiguration<WKF_WorkflowHistory>
    {
        public WKF_WorkflowHistoryMap()
        {
            // Primary Key
            this.HasKey(t => t.WH_ID);
            // Properties
            //                
            this.Property(t => t.WH_ID)
                .IsRequired()
                .HasColumnName("WH_ID");
            //                
            this.Property(t => t.MessageID)
                .HasMaxLength(50)
                .HasColumnName("MessageID");
            //                
            this.Property(t => t.NodeName)
                .HasMaxLength(50)
                .HasColumnName("NodeName");
            //                
            this.Property(t => t.NodeKey)
                .HasMaxLength(50)
                .HasColumnName("NodeKey");
            //                
            this.Property(t => t.HandledBy)
                .HasMaxLength(50)
                .HasColumnName("HandledBy");
            //                
            this.Property(t => t.HandledTime)
                .HasColumnName("HandledTime");
            //                
            this.Property(t => t.HandlerDeptID)
                .HasMaxLength(50)
                .HasColumnName("HandlerDeptID");
            //                
            this.Property(t => t.HandlerDeptName)
                .HasMaxLength(100)
                .HasColumnName("HandlerDeptName");
            //                
            this.Property(t => t.ProcType)
                .HasColumnName("ProcType");
            //                
            this.Property(t => t.DelegateTo)
                .HasMaxLength(50)
                .HasColumnName("DelegateTo");
            //                
            this.Property(t => t.Note)
                .HasMaxLength(500)
                .HasColumnName("Note");
            //                
            this.Property(t => t.DigitalSign)
                .HasColumnName("DigitalSign");
            //                
            this.Property(t => t.NodeTargets)
                .HasColumnName("NodeTargets");
            //                
            this.Property(t => t.Atts)
                .HasColumnName("Atts");
            // Table & Column Mappings
            this.ToTable("WKF_WorkflowHistory");


        }
    }
}